package com.ptswitch.material.test.zk;

import org.zkoss.zul.Listcell;
import org.zkoss.zul.Listitem;
import org.zkoss.zul.ListitemRenderer;

public class MyListRenderer implements ListitemRenderer<String> {

    @Override
    public void render(Listitem item, String value, int index) throws Exception {
        item.setValue(value);
        new Listcell(String.valueOf(index + 1)).setParent(item);
        new Listcell(value).setParent(item);
    }

}
